//
//  CYUser.h
//  CreditAddressBook
//
//  Created by Lee on 15/4/28.
//  Copyright (c) 2015年 Lee. All rights reserved.
//

#import <Foundation/Foundation.h>
@class CYCompanyInfo;

typedef NS_ENUM(NSInteger, CYExamineStatus) {
    /**0默认*/
    CYExamineStatusDefault = 0,
    /**1提交审核*/
    CYExamineStatusExamininge = 1,
    /**-1审核不通过*/
    CYExamineStatusNO = -1,
    /**2审核通过*/
    CYExamineStatusYES = 2,
};

@interface CYUser : NSObject

/**
 * id
 */
@property (nonatomic, copy) NSString *userId;

/**
 * 用户名
 */
//@property (nonatomic, copy) NSString *userName;

/**
 * 昵称
 */
@property (nonatomic, copy) NSString *nickName;

/**
 * 密码
 */
@property (nonatomic, copy) NSString *userPassword;

//压缩比例
@property (nonatomic, copy) NSNumber *percent;

/**
 * 用户类型，0为个人，1为企业，2为百翼财富人员，3为管理员
 */
//@property (nonatomic, copy) NSString *userType;

/**
 * 电话
 */
@property (nonatomic, copy) NSString *phone;

/**
 * 状态，0为不可用，1为可用
 */
@property (nonatomic, copy) NSString *status;

/**
 * 所属权限组(对象)
 */
//@property (nonatomic, copy) NSString *funcGroup;

/**
 * 所属企业
 */
//@property (nonatomic, strong) CYCompanyInfo *companyInfo;

/**
 * 查询次数
 */
//@property (nonatomic, copy) NSString *searchTimes;

/**
 * 用户头像
 */
@property (nonatomic, copy) NSString *headPic;

/**
 * 姓名
 */
@property (nonatomic, copy) NSString *name;

/**
 * 身份证号
 */
@property (nonatomic, copy) NSString *certificateNo;

/**
 * 手持身份证图片地址
 */
@property (nonatomic, copy) NSString *certificateNoAddress;

/**
 * 手持身份证(反)
 */
@property (nonatomic, copy) NSString *certificateNoFAddress;

/**
 * 手持身份证(正)
 */
@property (nonatomic, copy) NSString *certificateNoZAddress;

/**
 * 审核状态,0用户注册未提交审核，1提交审核，-1审核不通过，2审核通过,该字段对企业有效
 */
//@property (nonatomic, copy) NSString *examineStatus;

/**
 * 注册时间
 */
@property (nonatomic, copy) NSNumber *regTime;

/**
 * 提交审核时间
 */

//@property (nonatomic, copy) NSNumber *submitExamineTime;

/**
 * 网站注册0，android手机注册为1，iphone注册为2，企业贷款自动注册为3
 */
@property (nonatomic, copy) NSNumber *type;

/**
 *  交易密码
 */
@property(nonatomic, copy) NSString *dealCode;

/**
 *  审核人
 */
//@property(nonatomic, copy) NSString *examinePerson;

/**
 *  审核意见
 */
@property(nonatomic, copy) NSString *examineReason;

/**
 *  审核时间
 */
//@property(nonatomic, copy) NSString *examineDate;

/**
 *  登录验证码
 */
@property(nonatomic, copy) NSString *token;

//是否有新消息
@property (nonatomic, strong)NSString *newstype;

/**
 * 身份证审核信息
 *  审核状态,0默认，1提交审核，-1审核不通过，2审核通过,该字段对企业有效
 */
@property(nonatomic, copy) NSString *certificateExamineStatus;

@property(nonatomic, strong, readonly) NSString *certificateExamineStatusText;

/**
 *  是否显示审核通过按钮
 */
@property(nonatomic, assign, readonly) BOOL isShowExamineBtn;
@end
